<script>
  import { $http } from '@escook/request-miniprogram'
  
	export default {
		onLaunch: function() {
       // 挂载到 uni 对象上
          uni.$http = $http;
      
          // 初始化请求配置
          uni.$http.baseUrl = 'https://api-hmugo-web.itheima.net';
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import '@/uni_modules/uni-scss/index.scss';
	/* #ifndef APP-NVUE */
	@import '@/static/customicons.css';
	// 设置整个项目的背景色
	page {
		background-color: #f5f5f5;
	}

	/* #endif */
	.example-info {
		font-size: 14px;
		color: #333;
		padding: 10px;
	}
</style>
